/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.core.tool.utils.DateUtil;

/**
 * 电梯保养计划策略实体类
 *
 * @author ysq
 * @since 2023-04-25
 */
@Data
@TableName("blade_elevator_plan_strategy")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ElevatorPlanStrategy对象", description = "电梯保养计划策略")
public class ElevatorPlanStrategy extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 电梯id
	*/
	@ApiModelProperty(value = "电梯id")
	private Long elevatorId;
	/**
	* 是否已做首保 0:否, 1-是
	*/
	@ApiModelProperty(value = "是否已做首保 0:否, 1-是")
	private Integer isFirst;
	/**
	* 上一次维保工单id
	*/
	@ApiModelProperty(value = "上一次维保工单id")
	private Long previousPlanId;
	/**
	* 上一次维保签字日期
	*/
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@ApiModelProperty(value = "上一次维保签字日期")
	private Date previousPlanDate;
	/**
	* 下一次维保工单id
	*/
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	@ApiModelProperty(value = "下一次维保工单id")
	private Long nextPlanId;
	/**
	* 下一次保养计划日期
	*/
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@ApiModelProperty(value = "下一次保养计划日期")
	private Date nextPlanDate;
	/**
	* 逾期临界日期
	*/
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@ApiModelProperty(value = "逾期临界日期")
	private Date overdueDate;
	/**
	 * 最末保养日期
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@ApiModelProperty(value = "最末保养日期")
	private Date lastDate;

	@TableField(updateStrategy = FieldStrategy.IGNORED)
	@ApiModelProperty(value = "其它剩余计划是否存在逾期 0-否，1-是")
	private Integer otherOverdue;


}
